import SvgIcon from '@/components/SvgIcon/index.vue'
import Pagination from '@/components/Pageination/index.vue'
//引入element-plus图标的所有icon组件
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const allGloablComponents: any = { SvgIcon, Pagination }
export default {
  install(app: any) {
    Object.keys(allGloablComponents).forEach((key) => {
      app.component(key, allGloablComponents[key])
    })
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  },
}
